using System;
using System.Collections;
using System.Configuration.Install;
using System.ServiceProcess;
using System.ComponentModel;
namespace Agresso.Interface.Layer.WinService
{
	[RunInstallerAttribute(true)]
	public class SvcInstaller : System.Configuration.Install.Installer
	{
		private ServiceInstaller serviceInstaller;
		private ServiceProcessInstaller processInstaller;

        public SvcInstaller()
		{
			processInstaller = new ServiceProcessInstaller();
			serviceInstaller = new ServiceInstaller();
			processInstaller.Account=ServiceAccount.LocalSystem;
			serviceInstaller.StartType=ServiceStartMode.Automatic;
            serviceInstaller.ServiceName = AgressoInterfaceLayerWinService.SVC_NAME;
            serviceInstaller.DisplayName = AgressoInterfaceLayerWinService.SVC_NAME;
            serviceInstaller.Description = "This service is handling the schedule task Agresso Interface.";
			Installers.Add(serviceInstaller);
			Installers.Add(processInstaller);
		}
	}
}